<link rel="stylesheet" href="/css/other.css" type="text/css" />

<% @category = Cip::Category.find_by(slug: 'platform') %>
<%= render "cip/pages/banner" %>
<div class="grid ovf clear">
  <div class="main-box fl">
    <div class="fl main"><h1 class="ph"><%= @category.title %><small><%= @category.metadata && @category.metadata['副标题'] %></small></h1></div>
    <span class="fr c49 f14"> <a href="/">首页</a> > <%= @category.title %></span>
  </div>

  <% @pages = @category.pages.order(:position) %>

  <ul class="pt-box fl clear">
    <% @pages.each_with_index do |page, index| %>
      <li class="<%= 'last' if index % 2 == 1 %>"><div class="m-con fl"> <div class="fl"><a href="<%= page.url %>"><img src="<%= page.avatar.url(:large) %>" width=362px height=203px border="0"></a></div><div class="des fl"><p class="cb2 lh18 txt"><p><strong><%= page.title %></strong><br/><%= page.metadata && page.metadata['网店简介'] %></p><p><a href="<%= page.url %>" target="_blank"><%= page.url %></a></p><div class="bottom-bt"><a href="<%= page.url %>" target="_blank"><img src="/images/index_bt2.png" border="0"></a></div></div></div></li>
    <% end %>
  </ul>
</div>
